import request from '@/utils/request'

// 查询审核管理列表
export function listAuditOrder(query) {
  return request({
    url: '/wms/auditOrder/list',
    method: 'get',
    params: query
  })
}

// 查询审核管理详细(报价单)
export function getPriceComparisonAuditInfo(query) {
  return request({
    url: '/wms/auditOrder/getPriceComparisonAuditInfo',
    method: 'post',
    data: query
  })
}

// 查询审核管理详细(合同)
export function getContractAuditInfo(query) {
  return request({
    url: '/wms/auditOrder/getContractAuditInfo',
    method: 'post',
    data: query
  })
}

// 查询审核管理详细(采购单)
export function getPurchaseAuditInfo(query) {
  return request({
    url: '/wms/auditOrder/getPurchaseAuditInfo',
    method: 'post',
    data: query
  })
}

// 查询审核管理详细(物流单)
export function getLogisticsAuditInfo(query) {
  return request({
    url: '/wms/auditOrder/getLogisticsAuditInfo',
    method: 'post',
    data: query
  })
}

// 查询审核管理详细(清关单)
export function getCustomsClearanceAuditInfo(query) {
  return request({
    url: '/wms/auditOrder/getCustomsClearanceAuditInfo',
    method: 'post',
    data: query
  })
}

// 查询审核管理详细(已报价审核)
export function getOfferReportAuditInfo(query) {
  return request({
    url: '/wms/auditOrder/getOfferReportAuditInfo',
    method: 'post',
    data: query
  })
}

// 查询审核管理详细(确认收货)
export function getLogisticsConfirmAuditInfo(query) {
  return request({
    url: '/wms/auditOrder/getLogisticsConfirmAuditInfo',
    method: 'post',
    data: query
  })
}

// 修改审核管理
export function updateAuditOrder(data) {
  return request({
    url: '/wms/auditOrder',
    method: 'put',
    data: data
  })
}
